import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import router from './router'
import Message from './utils/Message.js'
import Confirm from './utils/Confirm.js'
import Verify from './utils/Verify.js'
import store from './store'

import '/public/resetcss/index.css'
import 'element-plus/dist/index.css'
import './style.css'
// iconfont 图标
import './assets/iconfont/iconfont.css'
import './assets/iconfont/iconfont.js'
import NavHeader from '@/components/NavHeader.vue'
import Table from '@/components/Table.vue'
import Cover from '@/components/Cover.vue'

import App from './App.vue'

const app = createApp(App)
app.use(store)
app.use(router)
app.use(ElementPlus)
app.component('NavHeader', NavHeader)
app.component('Table', Table)
app.component('Cover', Cover)

app.config.globalProperties.Message = Message
app.config.globalProperties.Confirm = Confirm
app.config.globalProperties.Verify = Verify

app.mount('#app')
